package com.mifengkong.cygtools.model;

import com.mifengkong.cygtools.jjcard.H5AutoFillDataBean;
import com.mifengkong.cygtools.jjcard.HttpFunctionForCard;

import java.util.List;

import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jiangyongxing on 2017/12/28.
 * 描述：首页和我的页面获取Card数据
 */

public class AutoFillDataModel extends BaseJIebaApiModel {

    public static AutoFillDataModel getInstance() {
        return getPresent(AutoFillDataModel.class);
    }

    public void execute(Observer<List<H5AutoFillDataBean>> observer) {
        mParams.put("user_id","891");
        mParams.put("bank_code","CMB");
        Observable observable = mServletApi.getAutoFillData(mParams).map(new HttpFunctionForCard());
        toSubscribe(observable, observer);
    }

}
